package com.nari.kmd_dataservice.constant;

import org.bouncycastle.pqc.math.linearalgebra.ByteUtils;

import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName: ConstantParameter
 * @Description:
 * @Author: zhangnaijiang
 * @Date: 2022/01/22 04:22
 * @Version 1.0.0
 */
public class ConstantParameter {
    public static String  localSM4Key = ByteUtils.toHexString("kmdZhangnjLizlin".getBytes(StandardCharsets.UTF_8));//6b6d645a68616e676e6a4c697a6c696e
    //负荷聚合平台SM4Key 负荷聚合平台注册ID-key
//    public static Map<String,String> laSM4KeyMap = new HashMap<String,String>(){{put("7246b8ccb80557a03c94adfe74fbe604f6c6531c3841ccb5baa7f9df6699d5e9","b117b2855426fe19b4156b9c5e9c7916");}};
    /*注册ID生成key*/
    public static String  registerKey = "registerKeykmdzhangnaijianglizhuolin";
    /*用户密码生成key*/
//    public static String  passwordKey = "passwordKeykmdzhangnaijianglizhuolin";
    /*token生成key*/
    public static String  tokenKey = "tokenKeykmdzhangnaijianglizhuolin";
    /*token参数加解密key*/
    public static String  tokenParaSM4Key = ByteUtils.toHexString("kmdYutaoZhangLiZ".getBytes(StandardCharsets.UTF_8));//6b6d64597574616f5a68616e674c695a

    public static final String dateFormatyyyyMMddHHmmss = "yyyy-MM-dd HH:mm:ss";
    public static final String dateFormatyyyyMMdd = "yyyy-MM-dd";
    public static final String dateFormatyyyyMM = "yyyy-MM";
    public static final String dateFormatyyyy = "yyyy";
    /*需求响应平台token超时分钟*/
    public static final int localTokenOutMinute = 60;
    /*负荷聚合平台token超时分钟*/
    public static final int laTokenOutMinute = 10;
}
